package com.lu.service;

import java.util.List;
import java.util.Map;

import com.lu.entity.Phone;
import com.lu.service.impl.PhoneServiceImpl;

public class PhoneService {

	public Phone getPhone(Map<String,Object> map) throws Exception{
		PhoneServiceImpl phoneServiceImpl = new PhoneServiceImpl();
		Phone user = phoneServiceImpl.getPhone(map);
		return user;
	};
	
	public List<Phone> getPhoneList(Map<String,Object> map) throws Exception{
		PhoneServiceImpl phoneServiceImpl = new PhoneServiceImpl();
		List<Phone> list = phoneServiceImpl.getPhoneList(map);
		return list;
	};
	
	public Integer save(Phone phone) throws Exception{
		PhoneServiceImpl phoneServiceImpl = new PhoneServiceImpl();
		Integer id = phoneServiceImpl.save(phone);
		return id;
	};
	
	public Integer update(Phone phone) throws Exception{
		PhoneServiceImpl phoneServiceImpl = new PhoneServiceImpl();
		Integer id = phoneServiceImpl.update(phone);
		return id;
	};
	
	public Integer remove(Long id) throws Exception{
		PhoneServiceImpl phoneServiceImpl = new PhoneServiceImpl();
		Integer id2 = phoneServiceImpl.remove(id);
		return id2;
	};
}
